<template>
    <div class="allS">
        <div id="a1">
            <div class="s1">
                <dv-border-box-13>
                    <div class="contentOne">
                        <div class="left">
                            <div class="text">微软云已识别云服务总数量
                            </div>
                        </div>
                        <div class="right">
                            <div class="textR">
                                {{ cloudaNum }}
                            </div>
                        </div>
                    </div>
                </dv-border-box-13>
            </div>
            <div class="s2">
                <dv-border-box-8>
                    <div class="dTit">
                        <div class="tA">微软云数据中心云服务、云组件数量统计排名
                        </div>
                    </div>
                    <left-detail-chart class="ID"></left-detail-chart>
                </dv-border-box-8>
            </div>
            <div class="s2">
                <dv-border-box-8>
                    <div class="dTit">
                        <div class="tA">微软云数据中心云服务资产排名</div>
                    </div>
                    <left-detail-chart-two class="ID"></left-detail-chart-two>
                </dv-border-box-8>
            </div>

            <div class="s2">
                <dv-border-box-8>
                    <div class="dTit">
                        <div class="tA">微软云数据中心云组件资产排名

                        </div>
                    </div>
                    <left-detail-chart-three class="ID"></left-detail-chart-three>
                </dv-border-box-8>
            </div>
        </div>
    </div>
</template>

<script>
import { serviceNum } from '@/api/leftDetailList-apply'
import leftDetailChart from './leftDetailChart/leftDetailChart.vue'
import leftDetailChartTwo from './leftDetailChartTwo/leftDetailChartTwo.vue'
import leftDetailChartThree from './leftDetailChartThree/leftDetailChartThree.vue'

export default {
    components: { leftDetailChart, leftDetailChartTwo, leftDetailChartThree },
    data() {
        return {
            cloudaNum: ''
        }
    },

    mounted() {
        this.initPage();
    },

    methods: {
        initPage() {
            serviceNum()
                .then((res) => {
                    if (res.code === 200) {
                        this.cloudaNum = res.data[0].serviceNum
                    } else {
                        this.$message.error('获取数据失败!')
                    }
                })
                .catch((err) => {
                    console.log("err", err);
                });
        }
    },
}
</script>

<style lang="scss" scoped>
.allS {
    display: flex;
    justify-content: flex-start;

    .ID {
        width: 100%;
        height: 100%;
    }

    #a1 {
        width: 450px;
        height: 95%;
        padding-top: 20px;
        padding-left: 10px;
        z-index: 1;



        .s1 {
            height: 120px;
            margin-bottom: 20px;

            .contentOne {
                width: 100%;
                height: 100%;
                display: flex;
                // color: deepskyblue;
                color: white;

                .left {
                    width: 50%;
                    height: 100%;
                    font-size: 18px;
                    font-weight: 900;
                    display: flex;
                    align-items: center;

                    .text {
                        white-space: nowrap;
                        margin-left: 40px;
                    }
                }

                .right {
                    width: 50%;
                    height: 100%;
                    font-size: 28px;
                    font-weight: 700;
                    position: relative;

                    .textR {
                        position: absolute;
                        left: 50%;
                        top: 50%;
                        transform: translate(-50%, -50%);
                        white-space: nowrap;
                    }
                }
            }
        }

        .s2 {
            width: 100%;
            height: 260px;
            margin-bottom: 15px;

            .dTit {
                width: 100%;
                font-size: 18px;
                color: white;
                padding-top: 20px;
                padding-left: 35px;
            }
        }

    }
}
</style>